
<!DOCTYPE HTML>
<html lang="" >
    <head>
        <meta charset="UTF-8">
        <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
        <title>配置 · Diboot微信模块</title>
        <meta http-equiv="X-UA-Compatible" content="IE=edge" />
        <meta name="description" content="">
        <meta name="generator" content="GitBook 3.2.3">
        
        
        
    
    <link rel="stylesheet" href="../gitbook/style.css">

    
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-anchor-navigation-ex/style/plugin.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-highlight/website.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-search/search.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-fontsettings/website.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-theme-vuejs-2/vue.css">
                
            
        

    

    
        
    
        
    
        
    
        
    
        
    
        
    

        
    
    
    <meta name="HandheldFriendly" content="true"/>
    <meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <link rel="apple-touch-icon-precomposed" sizes="152x152" href="../gitbook/images/apple-touch-icon-precomposed-152.png">
    <link rel="shortcut icon" href="../gitbook/images/favicon.ico" type="image/x-icon">

    
    <link rel="next" href="获取Service.html" />
    
    
    <link rel="prev" href="组件引入.html" />
    

    </head>
    <body>
        
<div class="book">
    <div class="book-summary">
        
            
<div id="book-search-input" role="search">
    <input type="text" placeholder="Type to search" />
</div>

            
                <nav role="navigation">
                



<ul class="summary">
    
    

    

    
        
        
    
        <li class="chapter " data-level="1.1" data-path="../">
            
                <a href="../">
            
                    
                    介绍
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2" data-path="../公众号组件.html">
            
                <a href="../公众号组件.html">
            
                    
                    公众号组件
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.2.1" data-path="../公众号组件/引入.html">
            
                <a href="../公众号组件/引入.html">
            
                    
                    引入
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2.2" data-path="../公众号组件/配置.html">
            
                <a href="../公众号组件/配置.html">
            
                    
                    配置
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2.3" data-path="../公众号组件/获取Service.html">
            
                <a href="../公众号组件/获取Service.html">
            
                    
                    获取Service
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2.4" data-path="../公众号组件/OAuth认证.html">
            
                <a href="../公众号组件/OAuth认证.html">
            
                    
                    OAuth认证
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2.5" data-path="../公众号组件/JSSDK初始化.html">
            
                <a href="../公众号组件/JSSDK初始化.html">
            
                    
                    JSSDK初始化
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2.6" data-path="../公众号组件/其他系列接口.html">
            
                <a href="../公众号组件/其他系列接口.html">
            
                    
                    其他系列接口
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.3" data-path="../企业微信组件.html">
            
                <a href="../企业微信组件.html">
            
                    
                    企业微信组件
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.3.1" data-path="组件引入.html">
            
                <a href="组件引入.html">
            
                    
                    组件引入
            
                </a>
            

            
        </li>
    
        <li class="chapter active" data-level="1.3.2" data-path="配置.html">
            
                <a href="配置.html">
            
                    
                    配置
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.3" data-path="获取Service.html">
            
                <a href="获取Service.html">
            
                    
                    获取Service
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.4" data-path="OAuth认证.html">
            
                <a href="OAuth认证.html">
            
                    
                    OAuth认证
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.5" data-path="JSSDK初始化.html">
            
                <a href="JSSDK初始化.html">
            
                    
                    JSSDK初始化
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.6" data-path="其他系列接口.html">
            
                <a href="其他系列接口.html">
            
                    
                    其他系列接口
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.4" data-path="../微信开放平台组件.html">
            
                <a href="../微信开放平台组件.html">
            
                    
                    微信开放平台组件
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.4.1" data-path="../微信开放平台组件/组件引入.html">
            
                <a href="../微信开放平台组件/组件引入.html">
            
                    
                    组件引入
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.2" data-path="../微信开放平台组件/配置.html">
            
                <a href="../微信开放平台组件/配置.html">
            
                    
                    配置
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.3" data-path="../微信开放平台组件/初始表.html">
            
                <a href="../微信开放平台组件/初始表.html">
            
                    
                    初始表
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.4" data-path="../微信开放平台组件/接收componentVerifyTicket.html">
            
                <a href="../微信开放平台组件/接收componentVerifyTicket.html">
            
                    
                    接收componentVerifyTicket
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.5" data-path="../微信开放平台组件/公众号授权给第三方平台.html">
            
                <a href="../微信开放平台组件/公众号授权给第三方平台.html">
            
                    
                    公众号授权给第三方平台
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.6" data-path="../微信开放平台组件/接收公众号消息.html">
            
                <a href="../微信开放平台组件/接收公众号消息.html">
            
                    
                    接收公众号消息
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.7" data-path="../微信开放平台组件/调用公众号接口.html">
            
                <a href="../微信开放平台组件/调用公众号接口.html">
            
                    
                    调用公众号接口
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    

    

    <li class="divider"></li>

    <li>
        <a href="https://www.gitbook.com" target="blank" class="gitbook-link">
            Published with GitBook
        </a>
    </li>
</ul>



                </nav>
            
        
    </div>

    <div class="book-body">
        
            <div class="body-inner">
                

                    

<div class="book-header" role="navigation">
    

    <!-- Title -->
    <h1>
        <i class="fa fa-circle-o-notch fa-spin"></i>
        <a href=".." >配置</a>
    </h1>
</div>




                    <div class="page-wrapper" tabindex="-1" role="main">
                        <div class="page-inner">
                            
<div id="book-search-results">
    <div class="search-noresults">
    
                                <section class="normal markdown-section">
                                
                                <div id="anchor-navigation-ex-navbar"><i class="fa fa-navicon"></i><ul><li><span class="title-icon "></span><a href="#&#x914D;&#x7F6E;"><b>1. </b>&#x914D;&#x7F6E;</a></li><ul><li><span class="title-icon "></span><a href="#systemconfig&#x8868;&#x7ED3;&#x6784;"><b>1.1. </b>system_config&#x8868;&#x7ED3;&#x6784;</a></li><li><span class="title-icon "></span><a href="#&#x589E;&#x52A0;&#x5E94;&#x7528;&#x914D;&#x7F6E;"><b>1.2. </b>&#x589E;&#x52A0;&#x5E94;&#x7528;&#x914D;&#x7F6E;</a></li><ul><li><span class="title-icon "></span><a href="#cons&#x6587;&#x4EF6;"><b>1.2.1. </b>Cons&#x6587;&#x4EF6;</a></li><li><span class="title-icon "></span><a href="#&#x6570;&#x636E;&#x5E93;&#x914D;&#x7F6E;"><b>1.2.2. </b>&#x6570;&#x636E;&#x5E93;&#x914D;&#x7F6E;</a></li></ul></ul></ul></div><a href="#&#x914D;&#x7F6E;" id="anchorNavigationExGoTop"><i class="fa fa-arrow-up"></i></a><h1 id="&#x914D;&#x7F6E;"><a name="&#x914D;&#x7F6E;" class="anchor-navigation-ex-anchor" href="#&#x914D;&#x7F6E;"><i class="fa fa-link" aria-hidden="true"></i></a>1. &#x914D;&#x7F6E;</h1>
<ul>
<li>&#x4E3A;&#x4E86;&#x4FBF;&#x4E8E;&#x4F01;&#x4E1A;&#x5FAE;&#x4FE1;&#x4E2D;&#x591A;&#x5E94;&#x7528;&#x7684;&#x5904;&#x7406;&#xFF0C;&#x6211;&#x4EEC;&#x7684;&#x4F01;&#x4E1A;&#x5FAE;&#x4FE1;&#x7EC4;&#x4EF6;&#x9ED8;&#x8BA4;&#x5C06;&#x4ECE;&#x6570;&#x636E;&#x5E93;&#x7684;&#x914D;&#x7F6E;&#x6570;&#x636E;&#x8868;<a href="">system_config</a>&#x4E2D;&#x8BFB;&#x53D6;&#x76F8;&#x5173;&#x914D;&#x7F6E;&#x3002;</li>
</ul>
<h2 id="systemconfig&#x8868;&#x7ED3;&#x6784;"><a name="systemconfig&#x8868;&#x7ED3;&#x6784;" class="anchor-navigation-ex-anchor" href="#systemconfig&#x8868;&#x7ED3;&#x6784;"><i class="fa fa-link" aria-hidden="true"></i></a>1.1. system_config&#x8868;&#x7ED3;&#x6784;</h2>
<ul>
<li><a href="">id</a> &#x81EA;&#x589E;&#x4E3B;&#x952E;</li>
<li><a href="">rel_obj_type</a> &#x5173;&#x8054;&#x5BF9;&#x8C61;&#x7C7B;&#x578B;&#xFF0C;&#x5728;&#x8FD9;&#x5F20;&#x53D8;&#x4E2D;&#x9ED8;&#x8BA4;&#x4E3A; <a href="">BaseOrg</a></li>
<li><a href="">rel_obj_id</a> &#x5173;&#x8054;&#x5BF9;&#x8C61;id&#xFF0C;&#x9ED8;&#x8BA4;&#x4E3A;0</li>
<li><a href="">type</a> &#x914D;&#x7F6E;&#x7C7B;&#x578B;&#xFF0C;&#x5BF9;&#x4E8E;&#x4F01;&#x4E1A;&#x5FAE;&#x4FE1;&#x7684;&#x914D;&#x7F6E;&#x9879;&#x4E3A;<a href="">WX_CP_APP</a></li>
<li><a href="">category</a> &#x4F01;&#x4E1A;&#x5FAE;&#x4FE1;&#x7684;&#x5E94;&#x7528;&#x7F16;&#x7801;&#xFF0C;&#x9700;&#x8981;&#x4E0E;Cons&#x7684;&#x679A;&#x4E3E;&#x4E2D;&#x5B9A;&#x4E49;&#x7684;&#x5E94;&#x7528;&#x7F16;&#x7801;&#x4E00;&#x81F4;&#xFF0C;&#x5982;<a href="">MSG</a>&#x3002;</li>
<li><a href="">extdata</a> &#x4F01;&#x4E1A;&#x5FAE;&#x4FE1;&#x5E94;&#x7528;&#x7684;&#x914D;&#x7F6E;&#x4FE1;&#x606F;&#xFF0C;&#x5B58;&#x653E;&#x4E00;&#x4E2A;&#x5177;&#x6709;&#x4F01;&#x4E1A;&#x5FAE;&#x4FE1;&#x5404;&#x9879;&#x5E94;&#x7528;&#x914D;&#x7F6E;&#x7684;json&#x5B57;&#x7B26;&#x4E32;&#xFF0C;&#x6BD4;&#x5982;&#xFF1A;<ul>
<li><a href="">corpid</a> &#x4F01;&#x4E1A;&#x5FAE;&#x4FE1;&#x7684;corpid&#xFF0C;&#x5FC5;&#x586B;&#x3002;</li>
<li><a href="">Secret</a> &#x5F53;&#x524D;&#x5E94;&#x7528;&#x7684;secret&#x914D;&#x7F6E;&#xFF0C;&#x9700;&#x8981;&#x7ECF;&#x8FC7;framework&#x4E2D;&#x52A0;&#x5BC6;&#x7C7B;&#x7684;&#x52A0;&#x5BC6;&#x540E;&#xFF0C;&#x8BBE;&#x7F6E;&#x5230;&#x8BE5;&#x5904;&#xFF0C;&#x5FC5;&#x586B;&#x3002;</li>
<li><a href="">AgentId</a> &#x5F53;&#x524D;&#x5E94;&#x7528;&#x7684;agentId&#x914D;&#x7F6E;&#xFF0C;&#x5FC5;&#x586B;&#x3002;</li>
<li><a href="">Token</a> &#x5F53;&#x524D;&#x5E94;&#x7528;&#x7684; <a href="">&#x63A5;&#x6536;&#x6D88;&#x606F;--&gt;&#x8BBE;&#x7F6E;API&#x63A5;&#x6536;</a> &#x4E2D;&#x63A5;&#x6536;&#x6D88;&#x606F;&#x670D;&#x52A1;&#x5668;&#x914D;&#x7F6E;&#x4E2D;&#x7684;<a href="">Token</a>&#x914D;&#x7F6E;&#x53C2;&#x6570;&#xFF0C;&#x9009;&#x586B;&#x3002;</li>
<li><a href="">EncodingAESKey</a> &#x5F53;&#x524D;&#x5E94;&#x7528;&#x7684; <a href="">&#x63A5;&#x6536;&#x6D88;&#x606F;--&gt;&#x8BBE;&#x7F6E;API&#x63A5;&#x6536;</a> &#x4E2D;&#x63A5;&#x6536;&#x6D88;&#x606F;&#x670D;&#x52A1;&#x5668;&#x914D;&#x7F6E;&#x4E2D;&#x7684;<a href="">EncodingAESKey</a>&#x914D;&#x7F6E;&#x53C2;&#x6570;&#xFF0C;&#x9009;&#x586B;&#x3002;</li>
</ul>
</li>
</ul>
<pre><code class="lang-json">{<span class="hljs-string">&quot;Secret&quot;</span>:<span class="hljs-string">&quot;xxxxxx&quot;</span>,<span class="hljs-string">&quot;AgentId&quot;</span>:<span class="hljs-string">&quot;1000001&quot;</span>,<span class="hljs-string">&quot;corpid&quot;</span>:<span class="hljs-string">&quot;xxxxx&quot;</span>}
</code></pre>
<ul>
<li><a href="">active</a> &#x8BBE;&#x7F6E;&#x4E3A;1&#x3002;</li>
</ul>
<h2 id="&#x589E;&#x52A0;&#x5E94;&#x7528;&#x914D;&#x7F6E;"><a name="&#x589E;&#x52A0;&#x5E94;&#x7528;&#x914D;&#x7F6E;" class="anchor-navigation-ex-anchor" href="#&#x589E;&#x52A0;&#x5E94;&#x7528;&#x914D;&#x7F6E;"><i class="fa fa-link" aria-hidden="true"></i></a>1.2. &#x589E;&#x52A0;&#x5E94;&#x7528;&#x914D;&#x7F6E;</h2>
<h3 id="cons&#x6587;&#x4EF6;"><a name="cons&#x6587;&#x4EF6;" class="anchor-navigation-ex-anchor" href="#cons&#x6587;&#x4EF6;"><i class="fa fa-link" aria-hidden="true"></i></a>1.2.1. Cons&#x6587;&#x4EF6;</h3>
<ul>
<li>&#x5728;&#x9879;&#x76EE;&#x7684;Cons&#x7C7B;&#x4E2D;&#xFF0C;&#x589E;&#x52A0;&#x76F8;&#x5173;&#x7684;&#x4F01;&#x4E1A;&#x5FAE;&#x4FE1;&#x5E94;&#x7528;&#x7F16;&#x7801;&#x679A;&#x4E3E;&#x5217;&#x8868;&#xFF0C;&#x5982;&#x4E0B;&#xFF1A;</li>
</ul>
<pre><code class="lang-java"><span class="hljs-keyword">public</span> <span class="hljs-keyword">enum</span> WX_CP_APP{
    MSG,
    POSTSALE,
    PRESALE
}
</code></pre>
<h3 id="&#x6570;&#x636E;&#x5E93;&#x914D;&#x7F6E;"><a name="&#x6570;&#x636E;&#x5E93;&#x914D;&#x7F6E;" class="anchor-navigation-ex-anchor" href="#&#x6570;&#x636E;&#x5E93;&#x914D;&#x7F6E;"><i class="fa fa-link" aria-hidden="true"></i></a>1.2.2. &#x6570;&#x636E;&#x5E93;&#x914D;&#x7F6E;</h3>
<ul>
<li>&#x5728;&#x6570;&#x636E;&#x5E93;<a href="">system_config</a>&#x6309;&#x7167;&#x4E0A;&#x9762;&#x8868;&#x7ED3;&#x6784;&#x7684;&#x8BF4;&#x660E;&#xFF0C;&#x6DFB;&#x52A0;&#x4E09;&#x6761;&#x76F8;&#x5173;&#x5E94;&#x7528;&#x914D;&#x7F6E;&#x7684;&#x8BB0;&#x5F55;&#x5373;&#x53EF;&#x3002;</li>
<li>&#x5728;&#x9700;&#x8981;&#x5BF9;&#x76F8;&#x5E94;&#x5E94;&#x7528;&#x8FDB;&#x884C;&#x64CD;&#x4F5C;&#x662F;&#xFF0C;&#x5148;&#x901A;&#x8FC7; WX_CP_APP.xxx &#x83B7;&#x53D6;&#x5230;&#x76F8;&#x5173;&#x7684;&#x5E94;&#x7528;&#x7F16;&#x7801;&#xFF0C;&#x83B7;&#x53D6;&#x76F8;&#x5E94;&#x7684;WxCpService&#x5B9E;&#x4F8B;&#xFF0C;&#x5373;&#x53EF;&#x8C03;&#x7528;&#x76F8;&#x5173;&#x63A5;&#x53E3;&#x6765;&#x8FDB;&#x884C;&#x5904;&#x7406;&#x3002;</li>
</ul>

                                
                                </section>
                            
    </div>
    <div class="search-results">
        <div class="has-results">
            
            <h1 class="search-results-title"><span class='search-results-count'></span> results matching "<span class='search-query'></span>"</h1>
            <ul class="search-results-list"></ul>
            
        </div>
        <div class="no-results">
            
            <h1 class="search-results-title">No results matching "<span class='search-query'></span>"</h1>
            
        </div>
    </div>
</div>

                        </div>
                    </div>
                

            </div>

            
                
                <a href="组件引入.html" class="navigation navigation-prev " aria-label="Previous page: 组件引入">
                    <i class="fa fa-angle-left"></i>
                </a>
                
                
                <a href="获取Service.html" class="navigation navigation-next " aria-label="Next page: 获取Service">
                    <i class="fa fa-angle-right"></i>
                </a>
                
            
        
    </div>

    <script>
        var gitbook = gitbook || [];
        gitbook.push(function() {
            gitbook.page.hasChanged({"page":{"title":"配置","level":"1.3.2","depth":2,"next":{"title":"获取Service","level":"1.3.3","depth":2,"path":"企业微信组件/获取Service.md","ref":"企业微信组件/获取Service.md","articles":[]},"previous":{"title":"组件引入","level":"1.3.1","depth":2,"path":"企业微信组件/组件引入.md","ref":"企业微信组件/组件引入.md","articles":[]},"dir":"ltr"},"config":{"plugins":["-sharing","sharing-plus","anchor-navigation-ex","theme-vuejs-2"],"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"pluginsConfig":{"search":{},"sharing-plus":{"qq":false,"all":["facebook","google","twitter","instapaper","linkedin","pocket","stumbleupon"],"douban":false,"facebook":true,"weibo":false,"instapaper":false,"whatsapp":false,"hatenaBookmark":false,"twitter":true,"messenger":false,"line":false,"vk":false,"pocket":true,"google":false,"viber":false,"stumbleupon":false,"qzone":false,"linkedin":false},"lunr":{"maxIndexSize":1000000,"ignoreSpecialCharacters":false},"theme-vuejs-2":{},"fontsettings":{"theme":"white","family":"sans","size":2},"highlight":{},"anchor-navigation-ex":{"mode":"float","pageTop":{"level1Icon":"","level2Icon":"","level3Icon":"","showLevelIcon":false},"showLevel":true,"tocLevel1Icon":"fa fa-hand-o-right","tocLevel2Icon":"fa fa-hand-o-right","tocLevel3Icon":"fa fa-hand-o-right","showGoTop":true,"isShowTocTitleIcon":true,"printLog":false,"multipleH1":true,"associatedWithSummary":true,"float":{"floatIcon":"fa fa-navicon","level1Icon":"","level2Icon":"","level3Icon":"","showLevelIcon":false}},"sharing":{"qq":true,"all":["weibo","qq","linkedin","qzone","douban"],"douban":false,"weibo":true,"instapaper":false,"whatsapp":false,"hatenaBookmark":false,"twitter":false,"messenger":false,"line":false,"vk":false,"pocket":false,"viber":false,"stumbleupon":false,"qzone":true,"linkedin":false},"theme-default":{"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"showLevel":false}},"theme":"default","pdf":{"pageNumbers":true,"fontSize":12,"fontFamily":"Arial","paperSize":"a4","chapterMark":"pagebreak","pageBreaksBefore":"/","margin":{"right":62,"left":62,"top":56,"bottom":56}},"structure":{"langs":"LANGS.md","readme":"README.md","glossary":"GLOSSARY.md","summary":"SUMMARY.md"},"variables":{},"title":"Diboot微信模块","gitbook":"*","description":"Diboot微信模块"},"file":{"path":"企业微信组件/配置.md","mtime":"2018-11-08T08:51:41.018Z","type":"markdown"},"gitbook":{"version":"3.2.3","time":"2018-11-10T15:13:58.990Z"},"basePath":"..","book":{"language":""}});
        });
    </script>
</div>

        
    <script src="../gitbook/gitbook.js"></script>
    <script src="../gitbook/theme.js"></script>
    
        
        <script src="../gitbook/gitbook-plugin-sharing-plus/buttons.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-search/search-engine.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-search/search.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-lunr/lunr.min.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-lunr/search-lunr.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-fontsettings/fontsettings.js"></script>
        
    

    </body>
</html>

